package edu.example.paperselection;

import java.util.*;

public class RandomSelectionStrategy implements PaperSelectionStrategy {
    @Override
    public List<Paper> selectPapers(List<Paper> availablePapers, int quantity) {
        List<Paper> shuffled = new ArrayList<>(availablePapers);
        Collections.shuffle(shuffled);
        return shuffled.subList(0, Math.min(quantity, shuffled.size()));
    }
}